$(function() {
	$('.rulebtn').on('click', function() {
		layer.open({
			content: '<div class="ruleinfolayer">\
			<div class="closebtn"><img src="'+$("#closebtn").val()+'"></div>\
			<img src="'+$("#ruleIMG").attr("src")+'">\
			</div>',
			className:"ruleinfolayer",
			style: 'width:90%;max-width:90%;',
			shadeClose: true
		});
		$('.closebtn').on('click', function() {
			layer.closeAll();
		});
	});
})